<%--
  Created by IntelliJ IDEA.
  User: 金贤哲
  Date: 2017/3/22 0022
  Time: 9:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
    <title>产品列表</title>
    <meta name="decorator" content="default"/>
    <link rel="stylesheet" href="/static/modules/api/Loanfilter/style/we.css"/>
    <script src="${ctxStatic}/layer/layer.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            /**
             * @funciton  数据库 ---  编辑页面  .val(str)
             */
            function toTextarea(str){
                var reg=new RegExp("<br>","g");
                var regSpace=new RegExp("&nbsp;","g");
                str = str.replace(reg,"\n");
                str = str.replace(regSpace," ");
                return str;
            }
            $(".remarks").each(function () {
                $(this).html(toTextarea($(this).text()));
            })

            function page(n,s){
                $("#pageNo").val(n);
                $("#pageSize").val(s);
                $("#searchForm").submit();
                return false;
            }
    </script>
</head>
<body>
<ul class="nav nav-tabs">
    <li class="active"><a href="${ctx}/sys/loan/loan/">贷款查询列表</a></li>
</ul>

<sys:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th>贷款名称</th>
    <th>匹配度</th>
<th>贷款额度</th>
<th>利 率</th>
</tr>
</thead>
<tbody>
<c:forEach items="${loans}" var="loan">
<tr>
<td><a href="${ctx}/sys/loan/loan/form?id=${loan.id}">${loan.name}</a></td>
    <td>${loan.getNum}/${loan.sumNum}</td>
<td>¥ ${loan.minAmount}- ${loan.maxAmount} 万元</td>
<td>${loan.minRate}-${loan.maxRate}</td>

</tr>
</c:forEach>
</tbody>
</table>
<div class="pagination">${page}</div>
</body>

</html>
